<template>
  <el-dialog
    title="人员添加"
    :visible.sync="dialogVisible"
    width="30%"
    :modal-append-to-body="false"
  >
    <el-form :inline="true" class="form">
      <el-form-item label="姓名">
        <el-input
          v-model="name"
          placeholder="请输入姓名"
          class="inputWidth"
        ></el-input>
      </el-form-item>
    </el-form>
    <el-upload
      class="upload-demo"
      drag
      action="https://jsonplaceholder.typicode.com/posts/"
      multiple
    >
      <i class="el-icon-upload"></i>
      <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
      <div class="el-upload__tip" slot="tip">
        只能上传jpg/png文件，且不超过500kb
      </div>
    </el-upload>
    <span slot="footer" class="dialog-footer">
      <el-button @click="dialogVisible = false">取 消</el-button>
      <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      dialogVisible: false,
      name: "",
    }
  },
  methods: {},
}
</script>

<style scoped>
.form {
  padding: 0;
}
</style>
